#include <SDL.h>
#include "scr_profiler.h"

SCRProfiler::SCRProfiler(const char* Name, const char* File, const int& Line)
	: m_Name(Name)
	, m_File(File)
	, m_Line(Line)
	, m_StartTime(0)
{
	m_StartTime = SDL_GetTicks();
}

SCRProfiler::~SCRProfiler()
{
	const int ElapsedTime = SDL_GetTicks() - m_StartTime;
	printf("SCRProfiler: %s %s, Line %i, Elapsed %i ms\n", m_Name, m_File, m_Line, ElapsedTime);
}
